echo "停用被占用的端口"
sudo fuser -k 8001/tcp
echo "开始构建"
sudo docker build -t vite-front:1.0.0 .
echo "先停止旧容器并删除"
sudo docker stop vite-webhooks
sudo docker rm vite-webhooks
echo "启动新容器"
sudo docker container run -p 8001:80 --name vite-webhooks -d vite-front:1.0.0